package main.com.hu.spring5.factoryBean;

import main.com.hu.spring5.Employee;
import org.springframework.beans.factory.FactoryBean;

public class MyBean implements FactoryBean<Employee> {
    @Override
    public Employee getObject() throws Exception {
        Employee employee = new Employee("1");
        employee.setAge(18);
        return employee;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
